#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pygame
import sys

import director

from scene import Scene
from map import *

def init(scene_main, config):
    dir = director.Director(config)
    scene = scene_main(dir)
    dir.change_scene(scene)
    dir.loop()


if __name__ == '__main__':
    init()